class MedicalRecord:
    """电子病历数据类"""
    
    def __init__(self, patient_id, diagnosis, medications, report_date, raw_data=None):
        """
        初始化电子病历对象
        
        Args:
            patient_id (str): 患者ID
            diagnosis (str): 诊断结果
            medications (list): 用药清单
            report_date (str): 检查报告日期
            raw_data (str): 原始病历数据
        """
        self.patient_id = patient_id
        self.diagnosis = diagnosis
        self.medications = medications
        self.report_date = report_date
        self.raw_data = raw_data
    
    def __str__(self):
        return f"MedicalRecord(patient_id={self.patient_id}, diagnosis={self.diagnosis}, report_date={self.report_date})"
    
    def __repr__(self):
        return self.__str__()